<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
    
</head>
<body>
<!--页面顶部导航模块-->
{include file="public/top" /}

<div class="container clearfix">
	<!--页面左侧导航模块-->
	{include file="public/left" /}

    <!--/sidebar-->

    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('Index/index')}">后台</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:url('Link/index')}">友情链接</a><span class="crumb-step">&gt;</span><span>修改友情链接</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <!--action=""表单提交到当前控制器的当前方法-->

                <form action="" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <!--ID字段-->
                    <input type="hidden" name="id" value="{$record.id}">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>链接名称</th>
                                <td><input class="common-text required" id="name" name="name" size="50" value="{$record.name}" type="text"></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>链接网址</th>
                                <td><input class="common-text required" id="url" name="url" size="50" value="{$record.url}" type="text"></td>
                            </tr>
                            <tr>
                                <th>链接图像</th>
                                <td><input class="common-text" name="image" size="50" value="{$record.image}" type="text"></td>
                            </tr>
                            <tr>
                                <th>链接描述</th>
                                <td><textarea class="common-textarea" id="desc" name="desc" cols="30" style="width: 98%;" rows="10">{$record.desc}</textarea></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>链接分类</th>
                                <td>
                                    <select name="type" id="type" class="required">
                                        <option value="">请选择</option>
                                        <option value="0">友情链接类型一</option>
                                        <option value="1">友情链接类型二</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>链接可见</th>
                                <td>
                                    <select name="visible" id="visible" class="required">
                                        <option value="">请选择</option>
                                        <option value="1" {if condition="'1' eq $record.visible"} selected='selected' {/if}>是</option>
                                        <option value="0" {if condition="'0' eq $record.visible"} selected='selected' {/if}>否</option>

                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn6 btn-primary mr10" type="submit" value="提交" >
                                    <input class="btn btn6" onclick="history.go(-1)" type="button" value="返回">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>

</body>
</html>